package com.shadowtorcher.stdisk.bean;

import com.shadowtorcher.soulknife.DataSupport;
import com.shadowtorcher.soulknife.exception.BeanConfigErrorException;
import com.shadowtorcher.stdisk.util.StaticUtils;

import java.sql.SQLException;

public class SharedFileBean extends DataSupport {
    private String SharedFileID; // 主键
    private String LogicFileID; // 外键
    private String Url;
    private int Covfefe; // covfefe

    @Override
    public void save() throws BeanConfigErrorException, SQLException {
        if (this.SharedFileID == null)
            this.SharedFileID = StaticUtils.generatorStringUUID();
        super.save();
    }

    public String getSharedFileID() {
        return SharedFileID;
    }

    public void setSharedFileID(String sharedFileID) {
        SharedFileID = sharedFileID;
    }

    public String getLogicFileID() {
        return LogicFileID;
    }

    public void setLogicFileID(String logicFileID) {
        LogicFileID = logicFileID;
    }

    public String getUrl() {
        return Url;
    }

    public void setUrl(String url) {
        this.Url = url;
    }

    public int getCovfefe() {
        return Covfefe;
    }

    public void setCovfefe(int covfefe) {
        Covfefe = covfefe;
    }
}
